#!/usr/bin/env python
# -*- coding:utf-8 -*-

import bpy

def myActivator(objName):
    bpy.context.scene.objects.active = bpy.data.objects[objName]

def mySelector(objName, additive = False):
    if not additive:
        bpy.ops.object.select_all(action = 'DESELECT')

    bpy.data.objects[objName].select = True

def mySpecifier(objName):
    return bpy.data.objects[objName]

myActivator('立方体')
mySelector('立方体')